package com.yd.app.service.pc.appPicService;

import com.yd.app.mapper.AppPicMapper;
import com.yd.app.service.common.BaseService;
import com.yd.domain.sys.AppPic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * APP首页轮播图片Service
 * Created by sxh on 2018/6/5.
 */
@Service
public class AppPicService extends BaseService {

    @Autowired
    AppPicMapper appPicMapper;

    /**
     * 查询列表
     * @return
     */
    public List<AppPic> getAppPicList() {
        List<AppPic>list=appPicMapper.getAppPicList();
        return list;
    }

    /**
     * 删除代理商信息
     * @param appPicId
     */
    public void deleteAppPicById(String appPicId) {
        appPicMapper.deleteAppPicById(appPicId);
    }

    /**
     * 添加代理商
     * @param appPic
     */
    public void addAppPic(AppPic appPic) {
        appPicMapper.addAppPic(appPic);
    }
    /**
     * 修改代理商
     * @param appPic
     */
    public void updateAppPic(AppPic appPic) {
        appPicMapper.updateAppPic(appPic);
    }
}